package com.seven.controller;

import com.seven.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author seven
 * @Date 2020/5/9 15:34
 **/
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    @GetMapping("{name}")
    public String sayHello(@PathVariable("name")String name){
        return helloService.sayHello(name);
    }
}
